import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import '../public/icon-font.css'
import './assets/base.css'
import 'amfe-flexible'

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//注册全局组件---------------------
import hh from '@/common/header'
Vue.component('hh',hh)
import hh2 from '@/common/header2'
Vue.component('hh2',hh2)

//注册moment时间处理包------------------------
import moment from 'moment'
Vue.filter('format',(time)=> {
  moment.locale('zh-cn')
  return moment(time).fromNow()
})



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
